export type OptionsType = {
  value: string
  text: string
}
export type QuestionRadioPropsType = {
  title?: string
  isVertical?: boolean
  options?: Array<OptionsType>
  value?: string,
  //用于 PropsComponent
  onChange?:(newProps:QuestionRadioPropsType)=>void
  disabled?: boolean, 

}

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: '单选标题',
  isVertical: false,
  options: [
    { value: 'item1', text: '选项1' },
    { value: 'item2', text: '选项2' },
    { value: 'item3', text: '选项3' },
  ],
  value: '',
}

//统计组件的属性类型
export type QuestionRadioStatPropsType = { 	
  stat:Array<{name:string,count:number}>
 }